package com.ma.pojo;

import com.ma.controller.doubleNodeController;

/**
 * 队列
 * @param <T>
 */
public class queue<T> {
    private doubleNodeController<T> doubleNodeController;

    public queue(){
        doubleNodeController=new doubleNodeController<T>();
    }

    public void push(T value){
        doubleNodeController.addFromHead(value);
    }

    public T remove(){
        return doubleNodeController.removeFromTail();
    }
}
